# TODO: to be refactored as a macro similar to soci_backend()
#       or as actual part of soci_backend()

set(MEDIAHOUSE_TEST_TARGET test_mediahouse)
set(MEDIAHOUSE_TEST_SOURCES test-mediahouse.cpp)

add_executable(${MEDIAHOUSE_TEST_TARGET} ${MediaHouse_Source_Addon} 
	${MediaHouse_Source_Core}
	${MEDIAHOUSE_TEST_SOURCES})

add_test(${MEDIAHOUSE_TEST_TARGET}
  ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${MEDIAHOUSE_TEST_TARGET})

target_link_libraries(${MEDIAHOUSE_TEST_TARGET} Hiberlite)
target_link_libraries(${MEDIAHOUSE_TEST_TARGET} soci_core-static soci_sqlite3-static)
target_link_libraries(${MEDIAHOUSE_TEST_TARGET} ${wxWidgets_LIBRARIES} ${SQLITE3_LIBRARY})
target_link_libraries(${MEDIAHOUSE_TEST_TARGET} Lib_Addons_Fs_Scanner)
target_link_libraries(${MEDIAHOUSE_TEST_TARGET} Lib_Addons_Txt_Media)
  